<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Environment Visualizer</title>
    <style>
        body {
            margin: 0;
            background-color: black;
        }
        canvas { display: block; }
        #controls {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(255, 255, 255, 0.9);
            padding: 10px;
            border-radius: 8px;
            z-index: 1; /* Ensure controls are above the canvas */
        }
    </style>
</head>
<body>
    <div id="controls">
        <label for="environmentDirectory">Environment selection:</label><br>
        <select id="environmentDirectory"></select><br><br>

        <label for="minDistance">Minimum distance: <span id="minValue">2.0</span>m</label><br>
        <input type="range" id="minDistance" min="0.5" max="10" value="2.0" step="0.5"><br><br>

        <label for="depthRange">Depth range: <span id="rangeValue">3.0</span>m</label><br>
        <input type="range" id="depthRange" min="0" max="10" value="3.0" step="0.5"><br><br>

        <label for="meshResolution">Mesh resolution: <span id="resolutionValue">1024</span></label><br>
        <input type="range" id="meshResolution" min="0" max="8" value="2" step="1"><br><br>

        <button id="refreshButton">Regenerate</button>
    </div>
    <script type="module" src="script.js"></script>
</body>
</html>
